<div class="g12 nodrop" style="margin-bottom: 43px;">

    <h1> <? if (isset($wordofday)) {echo 'Ažuriranje horoskopa'; } else echo 'Novi horoskop' ?> </h1>

    <p style="line-height: 13px;">

        DNEVNI HOROSKOP

    </p>


    <!--FORM IMAGE-->    
    <div style="width: 100%;">

        <div id="srvrserror-3"></div>

        <button id="dialog_confirm" style="display: none;">Confirm Dialog (confirm)</button>

        <form action="javascript:" method="post" autocomplete="off" data-confirm-send="false" id="frm_horoscope">

            <fieldset>

                <section><label for="input">Ovan</label>
                    <div><textarea rows="3" class="html" type="text" id="ovan" name="ovan" required><? if (isset($horoscope)) echo $horoscope[0]['ovan']; ?></textarea></div>
                </section>

                <section><label for="input">Bik</label>
                    <div><textarea rows="3" class="html" type="text" id="bik" name="bik" required><? if (isset($horoscope)) echo $horoscope[0]['bik']; ?></textarea></div>
                </section>
                
                <section><label for="input">Blizanci</label>
                    <div><textarea rows="3" class="html" type="text" id="blizanci" name="blizanci" required><? if (isset($horoscope)) echo $horoscope[0]['blizanci']; ?></textarea></div>
                </section> 

                <section><label for="input">Rak</label>
                    <div><textarea rows="3" class="html" type="text" id="rak" name="rak" required><? if (isset($horoscope)) echo $horoscope[0]['rak']; ?></textarea></div>
                </section>
                
                <section><label for="input">Lav</label>
                    <div><textarea rows="3" class="html" type="text" id="lav" name="lav" required><? if (isset($horoscope)) echo $horoscope[0]['lav']; ?></textarea></div>
                </section>
                
                <section><label for="input">Djevica</label>
                    <div><textarea rows="3" class="html" type="text" id="djevica" name="djevica" required><? if (isset($horoscope)) echo $horoscope[0]['djevica']; ?></textarea></div>
                </section>
                
                <section><label for="input">Vaga</label>
                    <div><textarea rows="3" class="html" type="text" id="vaga" name="vaga" required><? if (isset($horoscope)) echo $horoscope[0]['vaga']; ?></textarea></div>
                </section>
                
                <section><label for="input">Škorpija</label>
                    <div><textarea rows="3" class="html" type="text" id="skorpija" name="skorpija" required><? if (isset($horoscope)) echo $horoscope[0]['skorpija']; ?></textarea></div>
                </section>
                
                <section><label for="input">Strijelac</label>
                    <div><textarea rows="3" class="html" type="text" id="strijelac" name="strijelac" required><? if (isset($horoscope)) echo $horoscope[0]['strijelac']; ?></textarea></div>
                </section>
                
                <section><label for="input">Jarac</label>
                    <div><textarea rows="3" class="html" type="text" id="jarac" name="jarac" required><? if (isset($horoscope)) echo $horoscope[0]['jarac']; ?></textarea></div>
                </section>
                
                <section><label for="input">Vodolija</label>
                    <div><textarea rows="3" class="html" type="text" id="vodolija" name="vodolija" required><? if (isset($horoscope)) echo $horoscope[0]['vodolija']; ?></textarea></div>
                </section>
                
                <section><label for="input">Ribe</label>
                    <div><textarea rows="3" class="html" type="text" id="ribe" name="ribe" required><? if (isset($horoscope)) echo $horoscope[0]['ribe']; ?></textarea></div>
                </section>

                <section><label for="input">Datum</label>
                    <div>

                        <div id="cal">

                            <div class="boxdatum">

                                <div id="datumkomponenta1">

                                    <div class="gifloader"></div>

                                </div>

                            </div>

                        </div> 

                        <div id="srvrserror-4"></div>

                    </div>
                </section>

                <section>
                    <button class="submit small" onclick="return false;"><? if (isset($horoscope)) {echo 'Ažuriraj horoskop'; }else echo 'Kreiraj horoskop'; ?></button>
                </section>
                
                <input type="hidden" name="appmode" value="<? if (isset($_GET['id'])){echo 'edit';}else{echo 'insert';};?>" /> 
                <input type="hidden" name="id" value="<? if (isset($_GET['id']))echo $_GET['id'];?>" /> 
                <input type="hidden" name="datetime" id="datetime" value="<? if (isset($horoscope))echo $horoscope[0]['datetime'];?>" />  

            </fieldset>

        </form>

    </div>


</div>

<!-- VARIABLES TO edit_new_img.js -->
<script type="text/javascript">
    var appmode;
    var get_id;
    <?  if (isset($_GET['id'])){ ?> 
        appmode = 'edit';
        datetime = '<? echo $horoscope[0]['datetime']?>'; 
        get_id = '<?=$_GET['id']?>';

        <?}else{?> 
        appmode = 'insert'; 
        get_id = -1;
        <? } ?>
</script>
<style>
    #uniform-directory span{
        width: 17em;
    }
</style>